<div>
<?php
  echo $form->create('Upload', array('url'=>array('plugin'=>'gallery','controller'=>'gallery','action'=>'edit')));
  echo $form->input('Gallery.name');
  echo $form->hidden('Gallery.category_id');
  echo $form->hidden('Gallery.id');
  echo $form->end(__("Save File",true));
?>

<?php echo $fileUpload->image($this->data['Upload']['name'],array('autoResize'=>true,'width'=>500,'imagePathOnly'=>false));?>
</div>